home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10904 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  47 lines

  1. Path: snews.tcel.com!netway
  2. From: tech@netway.ab.ca (Ritchie Annand)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Want to use C++ and Delphi: Is it possible?
  5. Date: 10 Mar 1996 13:57:46 GMT
  6. Organization: Telnet Canada (403) 262-5859 info@tcel.com
  7. Message-ID: <4hun4q$npg@challenge.tcel.com>
  8. References: <96066.181629IMEG@psuvm.psu.edu>
  9. NNTP-Posting-Host: 204.209.150.60
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <96066.181629IMEG@psuvm.psu.edu>,
  13.    Sudhir Kumar <IMEG@psuvm.psu.edu> wrote:
  14. >Dear netters:
  15. >        I am really attracted to Delphi for designing my GUI but I would 
  16. >like to use C++ to do the rest of the coding.  I would like to know if this 
  17. >is a sensible thing to do.  That is, can I freely mix Delphi with C++ code?
  18.  
  19. I wouldn't use the term "freely mix" ;)  The easiest way to integrate the 
  20. both of them is to use one or the other as a DLL.  Delphi can also handle 
  21. linking in .OBJs... but in either case, you'd have to flatten out your 
  22. classes into access methods - .OBJs and .DLLs don't take simply containing 
  23. classes very well, and you'd have to demangle C++'s classes by giving them 
  24. extern "C" { } accessors if you were to link your C++ code into the Delphi 
  25. anyhow.
  26.  
  27. Delphi 2.0 is Windows 95/NT 3.51+ only, but it gives you the additional 
  28. option of letting Delphi spit out .OBJ files for linking.
  29.  
  30. >        Or, should I use OWL and C++.  In this case, why Borland does not 
  31. >have a Delphi like product for C++?
  32.  
  33. <grin> Delphi doesn't use OWL.  They've built up a VCL from scratch - which 
  34. uses some features in Delphi's language that will take a while to emulate in 
  35. C++ (never impossible, of course... just difficult ;) - virtual constructors, 
  36. cross-class method pointers, hierarchical RTTI and published members.
  37.  
  38. Have you checked out BC++ 5.0 yet?
  39.  
  40. >          Thanks in advance for your replies.
  41. >                                             Sudhir
  42. >                                             imeg@psuvm.psu.edu
  43.  
  44. Y'welcome ;)
  45.  
  46.   --=- Ritchie A.
  47.